import React from "react"

interface LabelProps {
  distance: number
  cnt: number
}
export const Label: React.FC<LabelProps> = (props) => {
  return (
    <div
     style={{
       fontSize: '20px',
       marginTop: '2%',
       marginLeft: '2%',
       color: 'tomato',
     }}>
    <span>最优解距离距离: {props.distance}KM</span>
    <br/>
    <span>迭代次数: {props.cnt}次</span>
    </div>
  )
}